<%@ include file="/taglibs.jsp"%>
<div id="dialog1" style="visibility: hidden;">
	<div class="hd">Editar</div>
	<div class="bd" align="center">
		<s:form theme="simple" id="editarform">
			<input type="hidden" id="id" name="id" value="" />
			<input type="hidden" id="nuevo" name="parametro.nuevo" value="" />
			<input type="hidden" id="editarNuevo" name="" value="" />
			<input type="hidden" id="vigente"  value="" />
			<input type="hidden" id="recordid" name="recordid" value="" />
			<fieldset>
				<table class="dialogtable">
					<tr>
						<td>ID:</td>
						<td>
							<s:textfield  cssStyle="width:205px;" id="username" name="parametro.username" maxLength="50"/>
						</td>
					</tr>
					<tr>
						<td colspan="2">
                    		<div class="errordiv" id="div.username" style="color:#FF0000"></div>
						</td>
					</tr>
					<tr>
						<td>Nombre:</td>
						<td>
							<s:textfield cssStyle="width:205px;" id="nombre" name="parametro.nombre" maxLength="100"/>
						</td>
					</tr>
					<tr>
						<td colspan="2">
                    		<div class="errordiv" id="div.nombre" style="color:#FF0000" ></div>
						</td>
					</tr>
					<tr>
						<td>Password:</td>
						<td>
							<s:textfield  cssStyle="width:205px;" id="password" name="parametro.password" maxLength="50"/>
						</td>
					</tr>
					<tr>
						<td colspan="2">
                    		<div class="errordiv" id="div.password" style="color:#FF0000"></div>
						</td>
					</tr>
					<tr>
						<td>Pais:</td>
						<td>
							<s:select cssStyle="width:205px;" id="idPais" name="parametro.idPais" list="paises" listKey="keyTxt" listValue="value" emptyOption="false" />
						</td>
					</tr>
					<tr>
						<td colspan="2">
                    		<div class="errordiv" id="div.pais" style="color:#FF0000" ></div>
						</td>
					</tr>
					<tr>
						<td>Rol:</td>
						<td>
							<s:select cssStyle="width:205px;" id="idRol" name="parametro.rolId" list="roles" listKey="keyTxt" listValue="value" emptyOption="false" />
						</td>
					</tr>
					<tr>
						<td colspan="2">
                    		<div class="errordiv" id="div.rolId" style="color:#FF0000"></div>
						</td>
					</tr>
					<!--tr>
						<td>Conexi&oacute;n:</td>
						<td>
							<s:select cssStyle="width:200px;" id="idRol" name="parametro.rolId" list="roles" listKey="keyTxt" listValue="value" emptyOption="false" />
						</td>
					</tr>
					<tr>
						<td colspan="2">
                    		<div class="errordiv" id="div.rolId" style="color:#FF0000"></div>
						</td>
					</tr-->
				</table>
			</fieldset>
		</s:form>
	</div>
</div>




<div id="dialog2" style="visibility: hidden;">
	<div class="hd">Nueva Mercancia</div>
	<div class="bd" align="center">
		<s:form theme="simple" id="mercform">
			<s:hidden name="username"  value="%{''}" />
			<fieldset>
				<table class="dialogtable">
					<tr>
						<td>Transacci&oacute;n:</td>
						<td>
							<s:select cssStyle="width:200px;" id="idTipoCertificado" name="idTipoCertificado"  list="transaccion" listKey="keyTxt" listValue="value" emptyOption="true" onchange="loadMercancias()"/>
							
						</td>
					</tr>
					<tr>
						<td colspan="2">
                    		<div class="errordiv" id="div.pais" style="color:#FF0000" ></div>
						</td>
					</tr>
					<tr>
						<td>Mercancia:</td>
						<td>
							<select id="mercancias" name="mercancias" multiple size="10" style=" width:200px;" ></select>
						</td>
					</tr>
					<tr>
						<td colspan="2">
                    		<div class="errordiv" id="div.rolId" style="color:#FF0000"></div>
						</td>
					</tr>
				</table>
			</fieldset>
		</s:form>
	</div>
</div>